package routers

import (
	"api/headline"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {

	video := r.Group("/video")
	{
		//视频发布
		video.POST("/Publish", headline.VideoPublish)
		//视频列表
		video.GET("/list", headline.VideoList)
		//上传视频文件
		video.POST("/upload", headline.UploadVideoFile)
		//视频搜索
		video.GET("/search", headline.VideoSearch)
		//视频详情
		video.GET("/detail", headline.VideoDetail)

	}

}
